-
Notifications
You must be signed in to change notification settings - Fork 101
fix: cold start only on on-demand invocation #2317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
dreamorosi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Attyuttam thank you for the PR.
Before we can start with the review, please make sure that the project still compiles after having made changes. Currently the CI is failing across the board.
If you have questions, please let us know.
|
@Attyuttam The CI fails due to broken unit tests. You can run locally My suggestion is to update the failing unit test by setting the environment variable you are checking for. You can use |
|
Still working on this, there are a lot of test failures due to the code change, will update and drop a message here ! |
|
No worries, feel free to reach out if you have any questions. Your work on this is much appreciated 👍 |
|
@Attyuttam For the other tests that are failing, most likely the issue will be resolved if you configure in |
|
Ohh, okay. I was manually setting using the @SetEnvironmentVariable annotation on every test, I was about to ask this here. Thanks for the suggestion. |
|
the powertools-idempotency-dynamodb module was failing in mvn clean test. Although, when the tests were run independently, they passed. I looked at the blog that was put in the comments but that has become invalid, so I updated that to the correct URL as well. I tried incorporating the changes based on the latest blog by nickolas fisher, but it did not work. Can you please help me out here |
|



Summary
Changes
Fixes #2113 - cold start only for on-demand invocation type else its not considered
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.